<?php

// Define New Post Type
add_action( 'init', 'create_post_type' );
function create_post_type() {
	/**/
	register_post_type( 'exhibition', array(
		'labels' => array(
			'name' => __( 'Exhibitions' ),
			'singular_name' => __( 'Exhibitions' ),
			'add_new_item' => 'Add New Exhibition',
			'edit_item' => __( 'Edit Exhibition' ),
			'new_item' => __( 'New Exhibition' ),
			'view_item' => __( 'View Exhibition' ),
			'search_item' => __( 'Search Exhibitions' ),
			'parent_item' => null,
			'parent_item_colon' => null,
			'not_found' => __( 'Not Found' ),
		),
		'menu_position' => 5,
		// 'taxonomies' => array('category'),
		'public' => true,
		'has_archive' => true,
		'hierarchical' => false, // Whether the post type is hierarchical. Allows Parent to be specified
		'rewrite' => array( 'slug' => 'exhibition' ),
		'supports' => array( 'title', 'editor', 'thumbnail' )
	));
	
	register_post_type( 'event', array(
		'labels' => array(
			'name' => __( 'Events' ),
			'singular_name' => __( 'Event' ),
			'add_new_item' => 'Add New Event',
			'edit_item' => __( 'Edit Event' ),
			'new_item' => __( 'New Event' ),
			'view_item' => __( 'View Event' ),
			'search_item' => __( 'Search Events' ),
			'parent_item' => null,
			'parent_item_colon' => null,
			'not_found' => __( 'Not Found' ),
		),
		'menu_position' => 5,
		'public' => true,
		'has_archive' => true,
		'hierarchical' => false, // Whether the post type is hierarchical. Allows Parent to be specified
		'rewrite' => array( 'slug' => 'event' ),
		'supports' => array( 'title', 'editor', 'thumbnail' )
	));

	
	register_post_type( 'bookshop', array(
		'labels' => array(
			'name' => __( 'Bookshop' ),
			'singular_name' => __( 'Bookshop' ),
			'add_new_item' => 'Add New Bookshop',
			'edit_item' => __( 'Edit Bookshop' ),
			'new_item' => __( 'New Bookshop' ),
			'view_item' => __( 'View Bookshop' ),
			'search_item' => __( 'Search Bookshop' ),
			'parent_item' => null,
			'parent_item_colon' => null,
			'not_found' => __( 'Not Found' ),
		),
		'menu_position' => 5,
		'public' => true,
		'has_archive' => true,
		'hierarchical' => false, // Whether the post type is hierarchical. Allows Parent to be specified
		'rewrite' => array( 'slug' => 'bookshop' ),
		'supports' => array( 'title', 'editor', 'thumbnail' )
	));


	register_post_type( 'artothek', array(
		'labels' => array(
			'name' => __( 'Artothek' ),
			'singular_name' => __( 'Artothek' ),
			'add_new_item' => 'Add New Artothek',
			'edit_item' => __( 'Edit Artothek' ),
			'new_item' => __( 'New Artothek' ),
			'view_item' => __( 'View Artothek' ),
			'search_item' => __( 'Search Artothek' ),
			'parent_item' => null,
			'parent_item_colon' => null,
			'not_found' => __( 'Not Found' ),
		),
		'menu_position' => 5,
		'public' => true,
		'has_archive' => true,
		'hierarchical' => false, // Whether the post type is hierarchical. Allows Parent to be specified
		'rewrite' => array( 'slug' => 'artothek' ),
		'supports' => array( 'title', 'editor', 'thumbnail' )
	));


	register_post_type( 'editionen', array(
		'labels' => array(
			'name' => __( 'Editionen' ),
			'singular_name' => __( 'Editionen' ),
			'add_new_item' => 'Add New Editionen',
			'edit_item' => __( 'Edit Editionen' ),
			'new_item' => __( 'New Editionen' ),
			'view_item' => __( 'View Editionen' ),
			'search_item' => __( 'Search Editionen' ),
			'parent_item' => null,
			'parent_item_colon' => null,
			'not_found' => __( 'Not Found' ),
		),
		'menu_position' => 5,
		'public' => true,
		'has_archive' => true,
		'hierarchical' => false, // Whether the post type is hierarchical. Allows Parent to be specified
		'rewrite' => array( 'slug' => 'editionen' ),
		'supports' => array( 'title', 'editor', 'thumbnail' )
	));







}
/*
	'title'
	'editor' (content)
	'author'
	'thumbnail' (featured image, current theme must also support post-thumbnails)
	'excerpt'
	'trackbacks'
	'custom-fields'
	'comments' (also will see comment count balloon on edit screen)
	'revisions' (will store revisions)
	'page-attributes' (menu order, hierarchical must be true to show Parent option)
	'post-formats' add post formats, see Post Formats 
	
	5 - below Posts
	10 - below Media
	15 - below Links
	20 - below Pages
	25 - below comments
	60 - below first separator
	65 - below Plugins
	70 - below Users
	75 - below Tools
	80 - below Settings
	100 - below second separator
*/



